<%@page import="study.itwill.jsp.CookieBox"%>
<%@page import="study.itwill.jsp.WebHandler"%>
<%@page import="study.itwill.team5.admin.AdminItem"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ page session="true" %>
<%
	AdminItem loginInfo = (AdminItem)session.getAttribute("ADMIN_INFO");
	
	// 로그인 정보가 없을 경우 로그인 페이지로 이동
	if (loginInfo == null) {
		response.sendRedirect("login.jsp");
		return;
	}
%>
<!DOCTYPE html>
<html lang="ko">
  <head>
  	<%@ include file="head.jsp"%>
  </head>
  <body>
  	<%@ include file="dbcon.jsp"%>
  	<%@ include file="menu.jsp"%>
  	<% db.disconnect(); %>
	<div class="container">
		
	</div>
	<!-- Javascript -->
	<script src="/Team-Project/assets/js/jquery.js"></script>
	<script src="/Team-Project/assets/js/bootstrap.min.js"></script>
<%
	CookieBox cbox = new CookieBox(request, response);

	// 쿠키가 없을 경우에만 팝업 열기
	if (!cbox.exists("popup_not_today")) {
%>
	<script type="text/javascript">
		// 팝업 열기
		window.open("popup.jsp", "", "width=320, height=260");
	</script>
<%
	}
%>		
  </body>
</html>